<template>
  <div class="cluster">
    <p class="cluster-item">
      <span>Name</span>
      <span>{{cluster_info?.name || app_definition?.name}}</span>
    </p>
    <p class="cluster-item">
      <span>ID</span>
      <span>{{id}}</span>
    </p>
    <p class="cluster-item">
      <span>Region</span>
      <span>BUPT</span>
    </p>
  </div>
</template>

<script setup>
import { defineProps } from 'vue'
let props = defineProps(['data'])
let {cluster_info, id, app_definition } = props.data

</script>

<style scoped>
.cluster {
  border: 1px solid black;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 10px;
}
.cluster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
}
.cluster-item span:first-child{
  font-size: 20px;
  font-weight: bold;
}
.cluster-item span:last-child{
  font-size: 18px;
}
</style>
